package tests;

import code.Action;

public class OneStepAction extends Action {
	private int state;

	public OneStepAction() {
		this.state = 0;
	}

	public boolean isFinished() {
		return this.state == 0;
	}

	@Override
	public boolean isReady() {
		return this.state!= 0;
	}

	@Override
	protected void realDoStep() {
		this.state++;
	}
}
